package pl.lodz.p.browarex.base.interfaces;

import java.io.Serializable;
import java.util.List;

public interface ICrudDao<MODEL extends IModel, ID extends Serializable> extends IDao {

	MODEL load(ID id);
	
	List<MODEL> list();

	boolean exist(ID id);

	MODEL create(MODEL model);

	MODEL update(MODEL model);

	void delete(ID id);

	void delete(MODEL model);

	void save(MODEL model);

	void evict(MODEL model);

}